home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Personal Computer World 2009 February
/
PCWFEB09.iso
/
Software
/
Resources
/
Chat & Communication
/
Digsby build 37
/
digsby_setup.exe
/
lib
/
jabber
/
idle_loop.pyo
(
.txt
)
< prev
next >
Wrap
Python Compiled Bytecode
|
2008-10-13
|
1KB
|
31 lines
# Source Generated with Decompyle++
# File: in.pyo (Python 2.5)
from util import default_timer, TimeOut
class IdleLoopTimer(TimeOut):
def __init__(self, seconds, func, *a, **k):
self.seconds = seconds
self.func = func
self.a = a
self.k = k
TimeOut.__init__(self)
def start(self):
self.done_at = default_timer() + self.seconds
TimeOut.start(self)
def compute_timeout(self):
self._last_computed = self.done_at - default_timer()
return self._last_computed
def process(self):
self.func(*self.a, **self.k)
self.done_at = default_timer() + self.seconds